/// @Author lixiaobin
/// @Date 2023/11/3
/// @Description
import 'package:json_annotation/json_annotation.dart';

part 'result_list_base.g.dart';

@JsonSerializable(genericArgumentFactories: true)
class ResultListBase<T> {
  List<T>? responseBody;
  int? responseCode;
  String? responseMsg;

  ResultListBase();

  factory ResultListBase.fromJson(
      Map<String, dynamic> json,
      T Function(dynamic json) fromJsonT,
      ) =>
      _$ResultListBaseFromJson<T>(json, fromJsonT);

  Map<String, dynamic> toJson(Object? Function(T value) toJsonT) =>
      _$ResultListBaseToJson<T>(this, toJsonT);
}
